Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODDragAndDrop


GetContentStorageUnit

The GetContentStorageUnit method returns a reference to the content storage unit for this drag-and-drop object.

ODStorageUnit GetContentStorageUnit ();
return value
A reference to the content storage unit.
DISCUSSION
When your part initiates a drag, you should first call the Clear method, then call this method and copy data from the drag item into the returned storage unit. The drag-and-drop object handles the creation and destruction of its content storage unit, so you must neither dispose of nor release the returned storage unit.

You must not cache the returned storage unit; instead you must call this method whenever you need to access the content storage unit.

EXCEPTIONS
kODErrNoDragManager
No platform-specific drag system service is available.
SEE ALSO
The ODDragAndDrop::Clear method (page 189).
The ODStorageUnit class (page 664).
"Data Configuration" on page 315 in OpenDoc Programmer's Guide.
"Initiating a Drag" on page 360 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help